package dataImport.model;

import dataImport.model.abstracts.AbstractEntity;


public class EmoteBeforeActionTemp extends AbstractEntity {

	private static final long serialVersionUID = -4460092087386256816L;

	private String customActionId;

	private String text;

	public EmoteBeforeActionTemp(final String customActionId, final String text) {
		super(createId(customActionId, text));
		this.customActionId = customActionId;
		this.text = text;
	}

	public String getCustomActionId() {
		return this.customActionId;
	}

	public void setCustomActionId(String customActionId) {
		this.customActionId = customActionId;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((this.customActionId == null) ? 0 : this.customActionId.hashCode());
		result = prime * result + ((this.text == null) ? 0 : this.text.hashCode());
		return result;
	}

	@Override
	public boolean equals(java.lang.Object obj) {
		if (this == obj) {
			return true;
		}
		if (!super.equals(obj)) {
			return false;
		}
		if (this.getClass() != obj.getClass()) {
			return false;
		}
		EmoteBeforeActionTemp other = (EmoteBeforeActionTemp) obj;
		if (this.customActionId == null) {
			if (other.customActionId != null) {
				return false;
			}
		}
		else if (!this.customActionId.equals(other.customActionId)) {
			return false;
		}
		if (this.text == null) {
			if (other.text != null) {
				return false;
			}
		}
		else if (!this.text.equals(other.text)) {
			return false;
		}
		return true;
	}

}
